package com.nacrtstudio.webgiftshop.model.website.beans;

import javax.persistence.Basic;
import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.FetchType;
import javax.persistence.Lob;

import org.apache.tapestry5.beaneditor.NonVisual;

import com.nacrtstudio.webgiftshop.core.beans.BaseBean;
import com.nacrtstudio.webgiftshop.model.website.QandA;

@Entity
public class QandABean extends BaseBean implements QandA
{
	private String question;
	
	@Lob @Basic(fetch = FetchType.LAZY)
	@Column(length=5000)
	private String answer;
	@NonVisual
	private boolean active;
	public String getQuestion() {
		return question;
	}
	public void setQuestion(String question) {
		this.question = question;
	}
	public String getAnswer() {
		return answer;
	}
	public void setAnswer(String answer) {
		this.answer = answer;
	}
	public boolean isActive() {
		return active;
	}
	public void setActive(boolean active) {
		this.active = active;
	}
}
